﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ShopFine.Models
{
    public class ImageUrlDAO
    {
        ShopFineEntities db;
        public ImageUrlDAO()
        {
            db = new ShopFineEntities();
        }

        internal List<ImageURL> GetImgUrlsByProductID(int productID)
        {
            return db.ImageURLs.Where(p=>p.ProductID == productID).ToList();
        }
    }
}